package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username    string `gorm:"type:varchar(10);not null;comment:用户名"`
	Password    string `gorm:"type:varchar(256);not null;comment:密码"`
	Img         string `gorm:"type:varchar(256);not null;comment:头像"`
	AccountName string `gorm:"type:varchar(20);not null;comment:账号名"`
	NickName    string `gorm:"type:varchar(20);not null;comment:昵称"`
	Sex         string `gorm:"type:varchar(10);not null;comment:性别"`
	Data        string `gorm:"type:varchar(25);not null;comment:出生日期"`
}
